/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package cn.edu.dyxy.yinyy.modules.blockly.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * Blockly设计项目Entity
 * @author 尹元元
 * @version 2020-03-21
 */
@Table(name="${_prefix}blockly_project", alias="a", columns={
		@Column(name="id", attrName="id", label="编号", isPK=true),
		@Column(name="title", attrName="title", label="项目名称", queryType=QueryType.LIKE),
		@Column(name="categories", attrName="categories", label="选中的积木类别"),
		@Column(name="code_xml", attrName="codeXml", label="设计的XML文档"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"/*, extFromKeys = "dsf", extWhereKeys = "dsf"*/
)
public class BlocklyProject extends DataEntity<BlocklyProject> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 项目名称
	private String categories;		// 选中的积木类别
	private String codeXml;		// 设计的XML文档
	
	public BlocklyProject() {
		this(null);
	}

	public BlocklyProject(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="项目名称长度不能超过 255 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getCategories() {
		return categories;
	}

	public void setCategories(String categories) {
		this.categories = categories;
	}
	
	public String getCodeXml() {
		return codeXml;
	}

	public void setCodeXml(String codeXml) {
		this.codeXml = codeXml;
	}
	
}